package com.hu.network.http.request.method.base;

import okhttp3.Request;
import timber.log.Timber;

/**
 * 说明：
 *
 * @author ： hucanhua
 * @date ： 2017/10/26
 */
public abstract class BaseHttpMethod {
    protected final String tag;
    protected final String url;

    public BaseHttpMethod(String tag, String url) {
        this.tag = tag;
        this.url = url;
    }

    public Request getRequest() {
        Request request = buildRequest();
        Timber.d(request.toString());
        return request;
    }

    protected abstract Request buildRequest();
}
